From 3432587f890e58584907776d45bb54b82cf25f89 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Wilmet?= Date: Sun, 24 Jul 2016 13:16:31 +0200 Subject: [PATCH] docs: add missing info for gtk_widget_get_style_context() It is important to know whether the returned object can or cannot change, for a certain widget. For example to connect to the GtkStyleContext::changed signal. https://bugzilla.gnome.org/show_bug.cgi?id=769047 --- gtk/gtkwidget.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index a8ad23284d..52a9995741 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -16542,7 +16542,8 @@ _gtk_widget_peek_style_context (GtkWidget *widget) * gtk_widget_get_style_context: * @widget: a #GtkWidget * - * Returns the style context associated to @widget. + * Returns the style context associated to @widget. The returned object is + * guaranteed to be the same for the lifetime of @widget. * * Returns: (transfer none): a #GtkStyleContext. This memory is owned by @widget and * must not be freed. -- 2.30.2